/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2024-01-10
 * Time: 13:08
 */
//组合：一种设计模式 即一个类的成员属性是其他类类型构成的
class Student1 {

}
class Teacher {

}
class School {
//    成员变量
    public Student1[] students = new Student1[3];
    public Teacher[] teachers = new Teacher[3];
}
public class Test4 {
    public static void main(String[] args) {

    }
}
